public with sharing class MessageEntry {
     public Boolean Ischeck{get;set;}
     public User u{get;set;}
     
     public MessageEntry(Boolean isCheck,User u)
     {
        this.Ischeck=isCheck;
        this.u=u;
     }
     
     static testMethod void Test(){
         Profile tempProfile = [Select p.Name, p.Id From Profile p where Name='System Administrator' LIMIT 1 ];
         User tempUser = [Select u.ProfileId, u.Name, u.Email From User u where ProfileId=:tempProfile.Id LIMIT 1];
         MessageEntry testClassInstance = new MessageEntry(true,tempUser);
         system.assert(testClassInstance.IsCheck);
         system.assert(testClassInstance.u.id == tempUser.id);         
     }
}